package movee.utils;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.exception.ExceptionUtils;


/**
 *
 *
 * @author movee
 */
@Slf4j
public final class CloseUtils {

    private CloseUtils() { }

    public static void close(AutoCloseable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (Throwable t) {
                log.error(ExceptionUtils.getStackTrace(t));
            }
        }
    }

}
